﻿/*
 * Date：2023/04/18
 * Subject：商品SPU表
 * Author：Max
 * 
 * 
 * **/
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Max.PH5_2010A.Shopping.Domain
{
    /// <summary>
    /// 商品SPU表
    /// </summary>
    [Table("tb_product_spu")]
    public class ProductSPUModel : AuditField<Guid>
    {
        /// <summary>
        /// 
        /// </summary>
        [Display(Description="产品名称")]
        public string? Name { get; set; }


        [Display(Description = "产品介绍")]
        public string? Description { get; set; }


        [Display(Description = "所属品牌")]
        public Guid? BrandID { get; set; }


        [Display(Description = "所属分类")]
        public Guid? CategoryID { get; set; }


        [Display(Description = "产品封面")]
        public string? CoverImagePath { get; set; }


        [Display(Description = "产品标识")]
        public string? Flag { get; set; } = "000000";

        public int? SaleNumber { get; set; } = 0;
        public int? CommentNumber { get; set; } = 0;
    }
}
